package com.yxw.yx_hotel.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @author liuxin
 * @date 2023.0913
 */
@EqualsAndHashCode(callSuper = false)
@Data
@ToString(callSuper=true)
@ApiModel(value="AddRoomPropertyDto", description="宿舍资产新增Dto")
public class AddRoomPropertyDto implements Serializable {

    @NotNull(message = "宿舍ID不能为空")
    @ApiModelProperty(value = "宿舍ID")
    private Long roomId;

    @NotBlank(message = "宿舍名称不能为空")
    @ApiModelProperty(value = "宿舍名称")
    private String roomName;

    @NotNull(message = "资产类型不能为空")
    @ApiModelProperty(value = "资产类型 1：自购 2：非自购")
    private int propertyType;

    @NotBlank(message = "资产编号不能为空")
    @ApiModelProperty(value = "资产编号")
    private String propertyCode;

    @NotBlank(message = "资产名称不能为空")
    @ApiModelProperty(value = "资产名称")
    private String propertyName;

    @ApiModelProperty(value = "品牌")
    private String band;

    @ApiModelProperty(value = "资产金额")
    private Double amount;

    @ApiModelProperty(value="购入日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date buyTime;

    @ApiModelProperty(value="保修到期日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date warrantyDate;
}
